import request from '@/utils/request'

// 获取会议反馈列表
export function getMeetingFeedbacks(meetingId, page, size) {
  return request({
    url: `/meeting-feedbacks/meeting/${meetingId}`,
    method: 'get',
    params: {
      page,
      size
    }
  })
}

// 提交会议反馈
export function submitMeetingFeedback(data) {
  return request({
    url: '/meeting-feedbacks',
    method: 'post',
    data: data
  })
}

// 获取会议反馈统计
export function getMeetingFeedbackStatistics(meetingId) {
  return request({
    url: `/meeting-feedbacks/statistics/${meetingId}`,
    method: 'get'
  })
}

// 检查用户是否已提交反馈
export function hasSubmittedFeedback(meetingId) {
  return request({
    url: `/meeting-feedbacks/check/${meetingId}`,
    method: 'get'
  })
} 